<!-- vue使用:事件绑定 -->
<script setup lang="ts">
const sayHi=()=>{
  alert('Hi')
}
const food = ()=>{
 alert('food')
}
</script>

<template>
<div><button @click="sayHi">点我一下</button></div>
<button @mouseenter="food" >触碰一下</button>


</template>

<style scoped>


</style>
